﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="RateChangeEdit.aspx.cs" Inherits="PowerWarning_RateChangeEdit" %>

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>基础数据类别维护</title>
    <base target="_self" />
    <link href="../css/css.css" rel="stylesheet" type="text/css" />
    <!--#include file="../Js/KeyControl.js"-->

    <script src="../JS/calendar.js" type="text/javascript"></script>

    <script language="javascript" type="text/javascript">

        function BtnSubmit() {
            var tr = form1.txtTelecomRate.value;
            var bar = form1.txtBaseRate.value;
            var bsr = form1.txtBusinessRate.value;
            var syear = form1.sltYear.value;

            if (syear == "") {
                form1.sltYear.focus();
                alert("年份不能为空！");
                return;
            }

            if (tr == "") {
                form1.txtTelecomRate.focus();
                alert("单位电信业务总量综合能耗下降率不能为空！");
                return;
            }

            if (bar == "") {
                form1.txtBaseRate.focus();
                alert("单载频基站耗电下降率不能为空！");
                return;
            }

            if (bsr == "") {
                form1.txtBusinessRate.focus();
                alert("单位业务量能耗变化率不能为空！");
                return;
            }

            var btnSave = window.document.getElementById("SaveData");
            if (btnSave != null)
                btnSave.click();
        }
        function BtnSave() {
            var btnSave = window.document.getElementById("btnSave");
            if (btnSave != null)
                btnSave.click(); 
        }
			
    </script>

</head>
<body style="background-image: url('../images/hit_bg.gif');">
    <% 
        Response.ExpiresAbsolute = System.DateTime.Now.AddSeconds(-1);
        Response.Expires = 0;
        Response.CacheControl = "no-cache";
    %>
    <form id="form1" runat="server">
    <table style="width: 98%;" border="0" align="center" cellpadding="0" cellspacing="0">
        <tr style="height: 6;">
            <td>
            </td>
        </tr>
    </table>
    <table width="98%" border="0" align="center" cellpadding="1" cellspacing="1" bgcolor="327AC6">
        <tr style="background-color: #F9F9FB; height: 25;">
            <td align="right">
                &nbsp;<strong>年份：</strong>
            </td>
            <td>
                &nbsp;<select id="sltYear" runat="server" style="width: 70px;">
                    <option value="">请选择...</option>
                    <option value="2008">2008</option>
                    <option value="2009">2009</option>
                    <option value="2010">2010</option>
                    <option value="2011">2011</option>
                    <option value="2012">2012</option>
                    <option value="2013">2013</option>
                    <option value="2014">2014</option>
                    <option value="2015">2015</option>
                </select><font color="#ff0000">*</font>
            </td>
        </tr>
        <tr style="background-color: #F9F9FB; height: 25;">
            <td align="right">
                &nbsp;<strong>单位电信业务总量综合能耗下降率：</strong>
            </td>
            <td>
                &nbsp;<asp:TextBox ID="txtTelecomRate" runat="server" CssClass="TextBox" MaxLength="50"
                    TabIndex="2"></asp:TextBox><font color="#ff0000">*</font>
            </td>
        </tr>
        <tr style="background-color: #F9F9FB; height: 25;">
            <td align="right">
                &nbsp;<strong>单载频基站耗电下降率：</strong>
            </td>
            <td>
                &nbsp;<asp:TextBox ID="txtBaseRate" runat="server" CssClass="TextBox" MaxLength="50"
                    TabIndex="2"></asp:TextBox><font color="#ff0000">*</font>
            </td>
        </tr>
        <tr style="background-color: #F9F9FB; height: 25;">
            <td align="right">
                &nbsp;<strong>单位业务量能耗变化率：</strong>
            </td>
            <td>
                &nbsp;<asp:TextBox ID="txtBusinessRate" CssClass="TextBox" MaxLength="50" TabIndex="3"
                    runat="server"></asp:TextBox><font color="#ff0000">*</font>
                <input type="button" id="btnCalculate" value="计算" class="button02" onclick="BtnSubmit();" />
            </td>
        </tr>
        <tr style="background-color: #F9F9FB; height: 25;">
            <td rowspan="3" align="right">
                <strong>年预测耗电量过程：</strong>
            </td>
            <td>
                &nbsp;<asp:Label ID="labTelecomRatePower" runat="server" Text=""></asp:Label>
            </td>
        </tr>
        <tr style="background-color: #F9F9FB; height: 25;">
            <td colspan="2">
                &nbsp;<asp:Label ID="labBaseRatePower" runat="server" Text=""></asp:Label>
            </td>
        </tr>
        <tr style="background-color: #F9F9FB; height: 25;">
            <td colspan="2">
                &nbsp;<asp:Label ID="labBusinessRatePower" runat="server" Text=""></asp:Label>
            </td>
        </tr>
        <tr style="background-color: #F9F9FB; height: 25;">
            <td align="right">
                &nbsp;<strong>最小年预测耗电量：</strong>
            </td>
            <td>
                &nbsp;<asp:Label ID="labMinPowers" runat="server" Text=""></asp:Label>
            </td>
        </tr>
        <tr style="background-color: #F9F9FB; height: 25;">
            <td rowspan="3" align="right">
                <strong>三目标导向过程：</strong>
            </td>
            <td>
                &nbsp;<asp:Label ID="labTelecomRate" runat="server" Text=""></asp:Label>
            </td>
        </tr>
        <tr style="background-color: #F9F9FB; height: 25;">
            <td colspan="2">
                &nbsp;<asp:Label ID="labBaseRate" runat="server" Text=""></asp:Label>
            </td>
        </tr>
        <tr style="background-color: #F9F9FB; height: 25;">
            <td colspan="2">
                &nbsp;<asp:Label ID="labBusinessRate" runat="server" Text=""></asp:Label>
            </td>
        </tr>
        <tr style="height: 30; background-color: #F9F9FB">
            <td>
            </td>
            <td>
                <input id="SaveData" type="button" style="width: 0; height: 0;" class="button02"
                    runat="server" value="计算" onserverclick="SaveData_ServerClick" />
                <asp:Button ID="btnSave" runat="server" Text="保存" OnClick="btnSave_Click" Width="0px"
                    Height="0px" />
                <input type="button" id="Button3" value="保存" class="button02" onclick="BtnSave();" />
                <input type="button" id="Button2" value="退出" class="button02" onclick="window.close();" />
            </td>
        </tr>
    </table>
    </form>
</body>
</html>
